<?php
/**
 * Created by PhpStorm.
 * User: linux
 * Date: 31/01/2018
 * Time: 4:13 PM
 */

namespace App\Advice;


use Go\Aop\Aspect;
use Go\Aop\Intercept\MethodInvocation;
use Go\Lang\Annotation\Around;

class AnnotationAspect implements Aspect
{
    /**
     * @param MethodInvocation
     * @Around("@execution(App\Annotation\TestAnnotation)")
     */
    public function annotationExec(MethodInvocation $invocation)
    {

        echo 'I am annotation I am running' . PHP_EOL;

    }
}